{extend name="layout/base"}

{block name="content"}
<div>   
    <table id="demo" lay-filter="test"></table>
</div>
<script>
layui.use(['jquery', 'table'], function () {
    var table = layui.table;
    //核验列表
    table.render({
        elem: '#demo',
        url: 'lists',
        page: true, 
        cols: [[
        {field: 'vfid', title: 'ID'},
        {field: 'mem_name', title: '会员名'},
        {field: 'mer_name', title: '商户名'} ,
        {field: 'cate_name', title: '分类'} ,
        {field: 'discount', title: '折扣'} ,
        {field: 'card_no', title: '会员卡号'} ,
        {field: 'time', title: '时间',templet:"<div>{{layui.util.toDateString(d.time*1000,'yyyy-MM-dd HH:mm:ss')}}</div>"},
        // {field:'done',title:'操作',align:'center', toolbar: '#barDemo'}
        ]]
    });
}) 
</script>
{/block}